package com.greateamd.timetableasy.client.services.campus;

import java.util.Date;
import java.util.List;

import com.google.gwt.user.client.rpc.RemoteService;
import com.google.gwt.user.client.rpc.RemoteServiceRelativePath;
import com.greateamd.timetableasy.domain.Campus;
import com.greateamd.timetableasy.domain.Event;
import com.greateamd.timetableasy.domain.exceptions.DBServerSideException;

@RemoteServiceRelativePath("campus.rpc")
public interface CampusService extends RemoteService {

	boolean remove(Campus campus) throws DBServerSideException ;
	boolean save(Campus campus)throws DBServerSideException;
	boolean update(Campus campus) throws DBServerSideException;
	Campus find(int id) throws DBServerSideException;
	List<Campus> getAll() throws DBServerSideException;
	
	List<Event> getPlanning(Campus selectedCampus, Date fromDate, Date toDate);
}
